﻿<Window x:Class="CECB.Project.UpdateProj_BasicDtails"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="UpdateProj_BasicDtails"   xmlns:toolkit="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Input.Toolkit"
        Height="710" Width="871" AllowsTransparency="True" WindowStyle="None" Background="{x:Null}" WindowStartupLocation="CenterScreen" Loaded="Window_Loaded_2">
    <Grid Height="790" Width="823" Margin="0,50,0,0">
        <Grid.RowDefinitions>
            <RowDefinition Height="221*" />
            <RowDefinition Height="569*" />
        </Grid.RowDefinitions>
        <Rectangle Margin="0,0,0,127" Stroke="White" RadiusY="19.5" RadiusX="19.5" StrokeThickness="3" Grid.RowSpan="2">
            <Rectangle.Effect>
                <DropShadowEffect Direction="330" BlurRadius="24" ShadowDepth="13" />
            </Rectangle.Effect>
            <Rectangle.Fill>
                <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                    <GradientStop Color="Black" Offset="0" />
                    <GradientStop Color="#FFA3A1A1" Offset="0.494" />
                    <GradientStop Color="#FF272121" Offset="0" />
                    <GradientStop Color="#FF272121" Offset="1" />
                </LinearGradientBrush>
            </Rectangle.Fill>
        </Rectangle>
        <Label Content="Update Project Details" Height="auto" HorizontalAlignment="Center" Margin="37,12,544,172"  VerticalAlignment="Center" Width="224" FontSize="20" FontStretch="Normal" FontStyle="Normal" FontWeight="Black" Foreground="#FFEFEFEF"></Label>
        <StackPanel Margin="12,54,384,156" Background="DimGray" OpacityMask="{x:Null}" Canvas.Left="-85" Canvas.Top="10" Grid.RowSpan="2">
            <WrapPanel VerticalAlignment="Top" Orientation="Horizontal" Margin="0,5,0,0"/>
            <WrapPanel VerticalAlignment="Top" Orientation="Horizontal" Margin="0,5,0,0"/>
            <WrapPanel VerticalAlignment="Top" Orientation="Horizontal" Margin="0,5,0,0"/>
            <WrapPanel VerticalAlignment="Top" Orientation="Horizontal" Margin="0,5,0,0"/>
            <WrapPanel VerticalAlignment="Top" Orientation="Horizontal" Margin="0,5,0,0"/>
            <WrapPanel VerticalAlignment="Top" Orientation="Horizontal" Margin="0,5,0,0"/>
            <WrapPanel VerticalAlignment="Top" Orientation="Horizontal" Margin="0,5,0,0"/>
            <WrapPanel Orientation="Horizontal" Margin="0,5,0,0"/>
            <WrapPanel Background="#FF3E3832" Canvas.Left="35" Canvas.Top="234">
                <Label BorderBrush="White" BorderThickness="0" Content="Project Reference" FontSize="16" FontStyle="Italic" FontWeight="Medium" Foreground="White" Height="28" HorizontalAlignment="Left" Margin="25,0,0,0" Name="label4" VerticalAlignment="Top" Width="145" />
                <Label Content="Project Refernce" Height="28" Width="137" Name="labelProjRef" FontSize="16" FontStyle="Italic" FontWeight="Medium" Foreground="White" BorderThickness="0" BorderBrush="White" />
            </WrapPanel>
        </StackPanel>

        <StackPanel Margin="453,29,0,156" Canvas.Left="306" Canvas.Top="12" Grid.RowSpan="2">
            <WrapPanel VerticalAlignment="Top" Orientation="Horizontal" Margin="0,5,0,0"/>
            <WrapPanel Height="190" Name="wrapPanel12" Width="358" Margin="20,50,0,0">
                <Image Height="162" Name="image_plan" Stretch="Fill" Width="340" />
            </WrapPanel>
            <Label BorderBrush="White" BorderThickness="0" Content="Imge Info" FontSize="16" FontStyle="Italic" FontWeight="Medium" Foreground="White" Height="28" Name="labelModelImg" Width="310" />
            <WrapPanel Orientation="Horizontal" Canvas.Left="35" Canvas.Top="324" Width="313">
                <WrapPanel VerticalAlignment="Top" Orientation="Horizontal" Margin="0,5,0,0" />
            </WrapPanel>
            <WrapPanel Height="138" Name="wrapPanel3" Width="342">
                <WrapPanel Height="36" Name="wrapPanel13" Width="342">
                    <Label BorderBrush="White" BorderThickness="0" Content="Model Image" FontSize="14" FontStyle="Italic" FontWeight="Medium" Foreground="White" Height="28" Name="label3" Width="95" />
                    <WrapPanel Height="29" Name="wrapPanel14" Width="51" />
                    <Button Content="Update Model Image" Height="23" Name="button_updateModelImage" Width="158" Click="button_updateModelImage_Click" />
                </WrapPanel>
                <Image Height="114" Name="image_model" Stretch="Fill" Width="342" />
            </WrapPanel>
            <WrapPanel Name="wrapPanel9" Height="131">
                <Label BorderBrush="White" BorderThickness="0" Content="Other Details" FontSize="14" FontStyle="Italic" FontWeight="Medium" Foreground="White" Height="28" Name="label_othDetails" Width="347" />
                <TextBox Name="tbMultiLine" TextWrapping="Wrap" AcceptsReturn="True" VerticalScrollBarVisibility="Visible" Width="360" Height="86"></TextBox>
            </WrapPanel>
        </StackPanel>
        <WrapPanel Height="49" Name="wrapPanel5" Canvas.Left="436" Canvas.Top="533" Margin="453,361,22,159" Grid.Row="1">
            <WrapPanel Height="46" Name="wrapPanel6" Width="24" />
            <Button Content="Update" Height="44" Name="button_projUpdate" Width="76" Click="button_projUpdate_Click" />
            <WrapPanel Height="47" Name="wrapPanel8" Width="32" />
            <Button Content="Delete" Height="44" Name="button_projdelete" Width="76" Click="button_projdelete_Click" />
            <WrapPanel Height="48" Name="wrapPanel10" Width="32" />
            <Button Content="Close" Height="48" Name="button_close" Width="75" Click="button_close_Click" />
        </WrapPanel>
        <WrapPanel Orientation="Horizontal" Canvas.Left="35" Canvas.Top="324" Margin="468,51,24,141">
            <Label Content="Plan Image" Height="28" Width="111" Name="label_planImage" HorizontalAlignment="Left" Margin="25,0,0,0" VerticalAlignment="Top" FontSize="14" FontStyle="Italic" FontWeight="Medium" Foreground="White" BorderThickness="0" BorderBrush="White" />
            <WrapPanel Height="29" Name="wrapPanel4" Width="47"></WrapPanel>
            <Button Content="Update Plan  Image" Height="23" Name="button_UpdatePlanImage" Width="140" Click="button_UpdatePlanImage_Click" />
        </WrapPanel>
        <WrapPanel Canvas.Left="35" Canvas.Top="200" Margin="14,195,394,192" Grid.Row="1"></WrapPanel>
        <WrapPanel Background="#FF3E3832" Canvas.Left="33" Canvas.Top="290" Orientation="Horizontal" Margin="16,161,384,380" Grid.Row="1">
            <Label Content="Location" Height="28" Width="141" Name="label_location" FontSize="16" FontStyle="Italic" FontWeight="Medium" Foreground="White" BorderThickness="0" BorderBrush="White" Margin="25,0,0,0" />
            <TextBox Name="textBox_location" Width="230" TextWrapping="Wrap" Height="28" FontSize="16" Background="#FFFFECA1" />
            <Label Content="*" FontSize="20" Foreground="Red" Height="20" Padding="2,0,2,0" />
        </WrapPanel>
        <WrapPanel VerticalAlignment="Top"  Background="#FF3E3832" Canvas.Left="35"  Canvas.Top="234" Margin="15,122,384,0" Grid.Row="1">
            <Label Content="Approving Agency" Height="33" Width="142" Name="label_appAgency" HorizontalAlignment="Left" Margin="25,0,0,0" VerticalAlignment="Top" FontSize="16" FontStyle="Italic" FontWeight="Medium" Foreground="White" BorderThickness="0" BorderBrush="White" />
            <TextBox Name="textBox_appAgency" Width="229" TextWrapping="Wrap" VerticalAlignment="Top" Height="33" FontSize="16" Background="#FFFFECA1" />
            <Label Content="*" FontSize="20" Foreground="Red" Height="20" Padding="2,0,2,0" />
        </WrapPanel>
        <WrapPanel VerticalAlignment="Top"  Background="#FF3E3832" Canvas.Left="35"  Canvas.Top="234" Margin="13,88,384,0" Grid.Row="1">
            <Label Content="Consultent" Height="28" Width="142" Name="label_consultent" HorizontalAlignment="Left" Margin="25,0,0,0" VerticalAlignment="Top" FontSize="16" FontStyle="Italic" FontWeight="Medium" Foreground="White" BorderThickness="0" BorderBrush="White" />
            <TextBox  Name="textBox_consltnt" Width="231" TextWrapping="Wrap" VerticalAlignment="Top" Height="28" FontSize="16" Background="#FFFFECA1" IsReadOnly="True" />
            <Label Content="*" FontSize="20" Foreground="Red" Height="20" Padding="2,0,2,0" />
        </WrapPanel>
        <WrapPanel Canvas.Left="35" Background="#FF3E3832" Canvas.Top="234" Margin="14,47,384,494" Grid.Row="1">
            <Label Content="Client" Width="142" Height="28" Name="label_client" HorizontalAlignment="Left" Margin="25,0,0,0" VerticalAlignment="Top" FontSize="16" FontStyle="Italic" FontWeight="Medium" Foreground="White" BorderThickness="0" BorderBrush="White" />
            <TextBox Name="textBox_client" Width="230" TextWrapping="Wrap" VerticalAlignment="Top" Height="28" FontSize="16" Background="#FFFFECA1" />
            <Label Content="*" FontSize="20" Foreground="Red" Height="20" Padding="2,0,2,0" />
        </WrapPanel>
        <WrapPanel VerticalAlignment="Top" Canvas.Left="35" Background="#FF3E3832" Name="wrapPanelUserLogin" Margin="15,4,384,0" Orientation="Horizontal" Grid.Row="1" Height="31">
            <Label Content="Project Type" Width="142" Height="33" Name="label_projtype" HorizontalAlignment="Left" Margin="25,0,0,0" VerticalAlignment="Top" FontSize="16" FontStyle="Italic" FontWeight="Medium" Foreground="White" BorderThickness="0" BorderBrush="White" />
            <ComboBox Height="28" Name="comboBox_projectType" Width="194" FontSize="16" FontStyle="Italic"  DisplayMemberPath="ptype_name" SelectedValuePath="ptype_reference" DropDownOpened="comboBox_projectType_DropDownOpened" />
            <Button Content="Add" Height="23" Name="button_projTypeAdd" Width="35" Click="button_projTypeAdd_Click" />
            <Label Content="*" FontSize="20" Foreground="Red" Height="20" Padding="2,0,2,0" />
        </WrapPanel>
        <WrapPanel Background="#FF3E3832" Canvas.Left="35" Canvas.Top="234" Margin="12,181,384,6">
            <Label Content="Project Catogory" Height="36" Width="145" Name="label_projcatogory" HorizontalAlignment="Left" Margin="25,0,0,0" VerticalAlignment="Top" FontSize="16" FontStyle="Italic" FontWeight="Medium" Foreground="White" BorderThickness="0" BorderBrush="White" />
            <ComboBox Height="26" Name="comboBox_ProjectCatogry"  FontSize="16" FontStyle="Italic" Width="229" DisplayMemberPath="cat_name" SelectedValuePath="cat_reference" DropDownOpened="comboBox_ProjectCatogry_DropDownOpened" />
            <Label Content="*" FontSize="20" Foreground="Red" Height="20" Padding="2,0,2,0" />
        </WrapPanel>
        <WrapPanel Background="#FF3E3832" Canvas.Left="35" Canvas.Top="234" Margin="14,128,384,56">
            <Label BorderBrush="White" BorderThickness="0" Content="Project Name" FontSize="16" FontStyle="Italic" FontWeight="Medium" Foreground="White" Height="28" HorizontalAlignment="Left" Margin="25,0,0,0" Name="label6" VerticalAlignment="Top" Width="120" />
            <toolkit:AutoCompleteBox Name="ProjctNameAutocompleteTextBox" Width="222" Margin="30,0,0,0" Height="37"  ValueMemberPath="proj_name"  FilterMode="Contains"  ItemsSource="{Binding}"  TabIndex="1" IsTabStop="True"  FontSize="18" Background="White" Opacity="1" HorizontalAlignment="Center" UseLayoutRounding="False" SelectionChanged="ReferenceTextBox_SelectionChanged" BorderBrush="#FFF8F8F8" BorderThickness="2">
                <toolkit:AutoCompleteBox.ItemTemplate>
                    <DataTemplate>

                        <StackPanel Orientation="Horizontal" >
                            <TextBlock Text="{Binding Path=proj_name}"  />
                            <TextBlock Text=" - "/>
                            <TextBlock Text="{Binding Path=proj_reference}"  />

                        </StackPanel>
                    </DataTemplate>
                </toolkit:AutoCompleteBox.ItemTemplate>
            </toolkit:AutoCompleteBox>
            <Label Content="*" FontSize="20" Foreground="Red" Height="20" Padding="2,0,2,0" />
        </WrapPanel>
        <WrapPanel Height="100" Name="wrapPanel7" Margin="15,160,643,530" Grid.RowSpan="2"></WrapPanel>
        <Expander Canvas.Left="38" Canvas.Top="367" FontSize="16" FontStyle="Italic" FontWeight="Medium" Foreground="White" Header="More Location Details" IsEnabled="True" IsExpanded="True" Name="expander_locationDetails" Height="209" Margin="12,198,396,162" Grid.Row="1">
            <Grid Height="234" Width="426">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="0*" />
                    <ColumnDefinition Width="343*" />
                    <ColumnDefinition Width="70*" />
                </Grid.ColumnDefinitions>
                <StackPanel Grid.Column="1" Grid.ColumnSpan="2" Margin="3,-34,-4,6" Name="stackPanel1">
                    <WrapPanel Height="28" Margin="0,5,0,0" Orientation="Horizontal" VerticalAlignment="Top" Width="398">
                        <WrapPanel Height="18" Name="wrapPanel2" Width="118" />
                    </WrapPanel>
                </StackPanel>
                <WrapPanel Grid.Column="1" Grid.ColumnSpan="2" Margin="16,39,12,6" Orientation="Horizontal" Width="399">
                    <TextBox Background="#FFFFECA1" FontSize="16" Foreground="#FF332F2F" GotFocus="textBox_longitude_GotFocus" Height="28" KeyDown="textBox_longitude_KeyDown" Name="textBox_longitude" SelectionBrush="#FF6E6E6E" TextChanged="textBox_longitude_TextChanged" Width="193" />
                    <TextBox Background="#FFFFECA1" FontSize="16" Foreground="#FF332F2F" GotFocus="textBox_latitude_GotFocus" Height="28" KeyDown="textBox_latitude_KeyDown" Name="textBox_latitude" SelectionBrush="#FF6E6E6E" TextChanged="textBox_latitude_TextChanged" Width="200" />
                    <Button Click="button_NewRecord_Click" Content="New" Height="23" Name="button_NewRecord" Width="193" />
                    <Button Click="button_RemoveRecord_Click" Content="Remove" Height="23" Name="button_RemoveRecord" Width="202" />
                    <ListView Canvas.Left="12" Canvas.Top="68" Height="102" Name="listView1" SelectionChanged="listView1_SelectionChanged" SelectionMode="Single" Width="395">
                        <ListView.View>
                            <GridView>
                                <GridViewColumn DisplayMemberBinding="{Binding Loc_longitude}" Header="Longitude" Width="150" />
                                <GridViewColumn DisplayMemberBinding="{Binding Loc_latitude}" Header="Latitude" Width="150" />
                            </GridView>
                        </ListView.View>
                    </ListView>
                </WrapPanel>
                <WrapPanel Background="#FF3E3832" Grid.Column="1" Grid.ColumnSpan="2" Height="34" Margin="15,4,16,0" Orientation="Horizontal" VerticalAlignment="Top">
                    <WrapPanel Height="21" Name="wrapPanel1" Width="4" />
                    <WrapPanel Height="34" Name="wrapPanel11" Width="32" />
                    <Label Content="Longitude" Foreground="White" Height="33" IsEnabled="True" Name="label1" Width="162" />
                    <Label Content="Latitude" Foreground="White" Height="33" IsEnabled="True" Name="label2" Width="168" />
                </WrapPanel>
            </Grid>
        </Expander>
        <Label BorderBrush="White" BorderThickness="0" Content="Imge Info" FontSize="16" FontStyle="Italic" FontWeight="Medium" Foreground="White" Height="28" Name="label_ImageInfo" Width="229" Margin="477,12,117,181" />
    </Grid>
</Window>

